# utf-8
# Python 2.7.16
#
import os
import datetime

print "1:create \n2:run \n3:deploy \n4:clean"

commond = ""
num = raw_input("num:" )

if "1"==num:
    title = raw_input("title:" )
    nowstr = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
    commond = 'hexo new "'+title+'" --id="'+nowstr+'"'
elif "2"==num:
    commond = "hexo clean&& hexo generate&& hexo server"
elif "3"==num:
    commond = "hexo clean&& hexo deploy"
elif "4"==num:
    commond = "hexo clean"
    ## rm -rf .deploy_git && rm -rf public && rm -rf node_modules && npm install
    ## rmdir /s/q .deploy_git& rmdir /s/q public& rmdir /s/q node_modules& npm install
else:
    pass

os.system( commond ) ## execute os commond

